![]() |
PATH![]() |
![]() ![]() |
If you implement a custom control definition function, when the Control Manager passes the message kControlMsgApplyTextColor in your control definition function's message parameter, it also passes a pointer to a structure of type ControlApplyTextColorRec in the param parameter. The Control Manager sets the ControlApplyTextColorRec structure to contain data describing the current drawing environment, and your control definition function is responsible for using that data to apply the proper text color to the current graphics port.
See Control Definition Message Constants for more details on the kControlMsgApplyTextColor message.
struct ControlApplyTextColorRec
{
SInt16 depth;
Boolean colorDevice;
Boolean active;
};
typedef struct ControlApplyTextColorRec ControlApplyTextColorRec;
typedef ControlApplyTextColorRec* ControlApplyTextColorPtr;